package com.taxshare.purchaser.view.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author YANG
 * @date 2021/4/6
 * @Description:手工录入请求
 */
@Data
@ApiModel("手工录入请求参数")
public class HandEnterDTO {

    @NotBlank(message = "PUR_003")
    @ApiModelProperty("发票类型")
    private String invoiceType;

    @NotBlank(message = "PUR_001")
    @Length(max = 12, min = 10, message = "PUR_0011")
    @ApiModelProperty("发票代码")
    private String invoiceCode;

    @NotBlank(message = "PUR_002")
    @Length(max = 8, min = 8, message = "PUR_0021")
    @ApiModelProperty("发票号码")
    private String invoiceNo;

    @NotBlank(message = "PUR_004")
    @ApiModelProperty("开票日期")
    private String invoiceDate;

    @ApiModelProperty("金额（不含税）")
    private String amountWithOutTax;

    @ApiModelProperty("校验码")
    private String checkCode;

    @ApiModelProperty("uuid")
    private String uuid;

    @NotBlank(message = "PUR_006")
    @ApiModelProperty("采集标志（0 私人采集 1 对公采集）")
    private String mark;
}
